import { Bk_Product } from 'src/product/bk_product.entity';
import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from 'typeorm';

@Entity()
export class Bk_Subject {
    @PrimaryGeneratedColumn()
    id: number;

    @Column({ unique: true })
    subject_name: string;

    @OneToMany(() => Bk_Product, product => product.subject)
    product: Bk_Product[]
}